﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>中标单位</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/plugins/layuiadmin/style/admin.css" media="all">
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <table id="dds-list" lay-filter="dds-list"></table>
        <script type="text/html" id="table-content-list">
          <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="queren"><i class="layui-icon layui-icon-edit"></i>确认表</a>
        </script>
      </div>
    </div>
  </div>
  <script src="/plugins/layui/layui.js"></script> 
  <script>
  layui.config({
    base: '/plugins/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index','table'], function(){
    var $ = layui.$,table = layui.table,form = layui.form,router = layui.router();
    table.render({
        elem: '#dds-list'
      , where: router.search
      , url: 'lottery_view' //接口
        , cols: [[
          { field: 'number', title: '序号', width: 60,align: 'center' }
        , { field: 'companyname', title: '单位名称', minWidth: 100 }
        , { field: 'address', title: '地址', minWidth: 100 }
        , { field: 'faren', title: '法人', minWidth: 60 }
        , { field: 'linker', title: '联系人', minWidth: 80 }
        , { field: 'tel', title: '联系电话', minWidth: 80 }
        , { field: 'email', title: '邮箱', minWidth: 100 }
        , { field: 'fuli', title: '下浮率', minWidth: 100 }
        , { title: '确认表', width: 95, align: 'center', fixed: 'right', toolbar: '#table-content-list' }
        ]]
        , page: false
      , text: {
        none: '暂无相关数据'
      }
    });

    //监听工具条
    table.on('tool(dds-list)', function(obj){
      var data = obj.data;
        if(obj.event === 'queren'){
            window.open('lottery_confirm.html?id='+data.id);
        } 
    });

  });
  </script>
</body>
</html>
